﻿using FluentNHibernate.Mapping;
using EntitiesAndMappings.Entities;
using System;
namespace EntitiesAndMappings.Maps
{
    public class SubFamiliaMap : ClassMap<SubFamilia>
    {

        public SubFamiliaMap()
        {
            Id(x => x.Id).GeneratedBy.Native();

            Map(x => x.Codigo).Not.Nullable();

            Map(x => x.Descripcion).Not.Nullable();

            References(x => x.Familia).Not.Nullable();

            Map(x => x.Estado).Length(1).Not.Nullable();
        }


    }
}
